package com.ruoyi.crm.service.Impl;

import com.ruoyi.crm.domain.DepartmentInfo;
import com.ruoyi.crm.mapper.DepartmentMapper;
import com.ruoyi.crm.service.IDepartmentService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@RequiredArgsConstructor
@Service
public class DepartmentServiceImpl implements IDepartmentService {
    private final DepartmentMapper departmentMapper;

    @Override
    public DepartmentInfo selectDepartmentById(Long departmentId) {
        return departmentMapper.selectById(departmentId);
    }
}
